package com.celesea.auth.dept.v1.controller.resource;

import com.celesea.auth.dept.vo.TreeNodeVo;
import org.springframework.beans.BeanUtils;

/**
 * @author JackYuan
 * @create 2017-11-25 00:25
 */
public class TreeNodeResource {
    private String id;
    private String name;
    private String type;
    private boolean isLeaf;

    public TreeNodeResource() {
    }

    public TreeNodeResource(TreeNodeVo item) {
        BeanUtils.copyProperties(item,this);
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isLeaf() {
        return isLeaf;
    }

    public void setLeaf(boolean leaf) {
        isLeaf = leaf;
    }
}
